

<script type="text/javascript" src="/static/js/common/pro_city.js"></script>
<script type="text/javascript" src="/static/js/common/pop_drum.js"></script>
<script type="text/javascript" src="/static/js/common/select_box.js"></script>
<script type="text/javascript" src="/static/js/common/base_form_validate_20141211.js"></script>
<script type="text/javascript" src="/static/js/job/job_validate_20141211.js"></script>

 
	<div class="main">
		<!--发布职位 begin-->
		<div class="m-boxB">
			<div class="boxB-hd">
				<h2 class="boxB-tit hei">发布职位</h2>
			</div>
			<div class="boxB-bd">
				<div class="m-form-b m-form-b-s1">
				<p class="tips-box" style="margin-left: 133px;">温馨提示：为了保证服务质量，秒聘网只能发布产品、运营、交互、用户体验四个类型职位。</p>
				<form id="jobForm" name="jobForm" action="/acompany/issuejob" method="post"> 
					<input type="hidden" name="dosubmit" value="true">
					<input type="hidden" name="id" value="{{.job.Id}}">
					<div class="item">
						<span class="field">职位名称</span>
						<input id="nameInput" class="ipt-txt"  type="text" name="name"  maxlength="20" onfocus="formTagInit(this)" onblur="checkFormTag(this)" tips="请填写职位名称，例如“产品经理”" value="{{.job.Name}}" />
						<span class="form-tips">请填写职位名称，例如“产品经理”</span>
					</div>


<script type="text/javascript">
$(function(){
	var items = $(".item-jobType").find(".select-pop")[0].children
	var jobTypeInput = $(".item-jobType").find("#jobTypeInput")[0].getAttribute("value")
	for (var i = 0; i < items.length; i++) {
		if(items[i].getAttribute("cvalue") == jobTypeInput){
			console.log(items[i].innerHTML)
			$(".item-jobType").find(".select-is")[0].innerHTML = items[i].innerHTML
		}
	};
});
</script>


					<div class="item item-jobType">
						<span class="field">职位类别</span>
						<input id="jobTypeInput" type="hidden" name="jobType" value="{{.job.JobType}}"  tips="请选择准确的职位类别"/> 
						<div class="m-select " >
								<div class="select-trig">
								<span class="select-is">请选择</span><i class="select-arrow"></i></div>
								<div class="select-pop" >
										<div class="select-item" cvalue="1101">产品经理</div>
										<div class="select-item" cvalue="1102">产品助理</div>
										<div class="select-item" cvalue="1104">产品实习生</div>
										<div class="select-item" cvalue="1110">产品部经理</div>
										<div class="select-item" cvalue="1108">产品总监</div>
										<div class="select-item" cvalue="1111">用户体验师</div>
										<div class="select-item" cvalue="1112">交互设计师</div>
										<div class="select-item" cvalue="1301">产品运营</div>
								</div>
						</div>
						<span class="form-tips">请选择准确的职位类别</span>
					</div>
					<!--
					<div class="item">
						<span class="field">工作地点</span>
						<div class="m-select" style="width:150px;">
							<select id="s_province" name="province" onchange="initcity();"  style="width:140px;height:38px" tips="请准确地选择省/直辖市">
								<script>creatprovince();</script>
							</select>
						</div>
						<div class="m-select" style="width:130px;" >
							<select id="s_city" name="city" style="width:127px;height:38px" tips="请准确地选择市">
							    <option value="">请选择市</option>
							</select>
						</div>
						<span id="pcTips" class="form-tips">请准确地选择上班地点</span>
					</div>
					  -->
					<div class="item">
						<span class="field">工作地点</span>
						<div class="m-select" style="width:150px;">
							<select id="s_province" name="province" onchange="initcity();"  initValue="{{.job.Province}}" style="width:140px;height:38px"  tips="请准确地选择省/直辖市"></select>
						</div>
						<div class="m-select" style="width:130px;">
							<select id="s_city" name="city" style="width:128px;height:38px"   tips="请准确地选择市">
									  <option value="{{.job.City}}">{{.job.City}}</option>
							</select>
						</div>
						<span  id="pcTips" class="form-tips">请准确地选择上班地点</span>
					</div>
					<div class="item">
						<span class="field">区/街道</span>
						<input id="addressInput" class="ipt-txt" type="text" value="{{.job.Address}}"  name="address"  maxlength="128" onfocus="formTagInit(this)" onblur="checkFormTag(this)" tips="请补充完整的地址方便求职者面试"  />
						<span class="form-tips">请补充完整的地址方便求职者面试</span>
					</div>
					<div class="item">
						<span class="field">公司名称</span>
						<input id="companyInput" class="ipt-txt" type="text" name="company" value="{{.job.Company}}"  maxlength="64" onfocus="formTagInit(this)" onblur="checkFormTag(this)" tips="请填写你的公司名称，例如“深圳聚力创想”"  />
						<span class="form-tips">请填写你的公司名称，例如“深圳聚力创想”</span>
					</div>
					  
					<div class="item">
						<span class="field">部门名称</span>
						<input id="departmentInput" class="ipt-txt" type="text" name="department"  maxlength="32" onfocus="formTagInit(this)" onblur="checkFormTag(this)" tips="请填写岗位所属部门" value="{{.job.Department}}"/>
						<span class="form-tips">请填写岗位所属部门</span>
					</div>
					
					<div class="item">
						<span class="field">月薪范围</span>
						<input id="salary_min" class="ipt-txt" style="width:103px;float: none;ime-mode:Disabled;"  maxlength="3"  name="salary_min"  type="text" onfocus="formTagInit(this)" onblur="checkFormNumber(this)" tips="请填写最低月薪"  onkeydown="onlyNumber();" value="{{.job.Salary_min}}" />
						-
						<input id="salary_max" class="ipt-txt" style="width:102px;float: none;ime-mode:Disabled;"   maxlength="3"  name="salary_max"    type="text" onfocus="formTagInit(this)" onblur="checkFormNumber(this)" tips="请填写最高月薪" onkeydown="onlyNumber();" value="{{.job.Salary_max}}"/>
						K
						<span id="salaryTips" class="form-tips" style="float: none">请如实填写岗位月薪范围</span>
					</div>
					<div class="item">
						<span class="field">项目/团队介绍</span>
						<textarea id="team_introInput" class="textarea" name="team_intro"  maxlength="1024"   onfocus="formTagInit(this)" onblur="checkFormTag(this)" tips="为了让你招到更靠谱的人才，请对你的团队和项目做个简单的介绍吧">{{.job.Team_intro}}</textarea>
						<span class="form-tips">为了让你招到更靠谱的人才，请对你的团队和项目做个简单的介绍吧</span>
					</div>
					<div class="item">
						<span class="field">职位说明</span>
						<textarea  id="responsibilityInput"  class="textarea"  name="responsibility"   maxlength="2048" onfocus="formTagInit(this)" onblur="checkFormTag(this)" tips="建议你填写详细的职位说明，这将直接决定你是否能找到合适的人才">{{.job.Responsibility}}</textarea>
						<span class="form-tips">建议你填写详细的职位说明，这将直接决定你是否能找到合适的人才</span>
					</div>
					<div class="item" id="saveDiv">
						
							<a class="btn_blueA" href="javascript:;" onclick="saveJob()">确认发布</a>
						
						<span class="fn-cgray fn-ml20">你每天可以发布10个职位，目前剩余10个</span>
					</div>
				</form>
				</div>
			</div>
		</div>
		<!--发布职位 end-->
	</div>


<!--发布职位 继续  begin-->
<div class="m-popB m-popB-delivery" id="job_yes_div">
	<div class="hd">
		<h3 class="tit">发布职位</h3>
		<!-- 
		<a class="close" href="javascript:;"></a>
		 -->
	</div>
	<div class="bd">
		<div class="tipsArea"><span class="tips-fail">发布成功，今日还可以发布<span id="hasJobDiv"></span>个职位</span></div>
		<div class="btnArea"  style="float:left"><a class="btn_blueA" href="/job/2publish.html">继续发布</a></div>
		<div class="btnArea" style="float:left;margin-left: 30px"><a class="btn_blueA" href="/job/index.html">结束发布</a></div>
	</div>
</div>
<!--发布职位 继续  end-->

<!--发布职位 停止  begin-->
<div class="m-popB m-popB-delivery" id="job_no_div">
	<div class="hd">
		<h3 class="tit">发布职位</h3>
		<!-- 
			<a class="close" href="javascript:;"></a>
		 -->
	</div>
	<div class="bd">
		<div class="tipsArea"><span class="tips-fail">发布成功！今日发布职位数已达上限，请明日再试</span></div>
		<div class="btnArea"><a class="btn_blueA" href="/job/index.html">结束发布</a></div>
	</div>
</div>
<!--发布职位 停止  end-->

<div class="p-mask" id="J-mask" style="display:none;"></div>

<script>
$(function() {
	//初始化省
	creatprovince();
	//省赋值
	$("option[value='"+$("#s_province").attr("initValue")+"']","#s_province").attr("selected","selected");
	
	//职位标签初始化最多可选初始化
	field_canLen = 4;
});
</script>

{{template "layout/footer.html"}}
